<include file="Index:header" />
<!--头部 end -->
<!--左栏 starts -->
<div class="container-fluid">
		<div class="row-fluid">
			<include file="left" />

			<div id="content" class="span10">
			<!-- content starts -->
<!--左栏 end -->
<ul class="breadcrumb">
      <li>
        <a href="__APP__/ADMINADSS.html">首页</a> <span class="divider">/</span>
      </li>
      <li class="active">红包设置</li>
    <div  class="pull-right"> <a href="__APP__/ADMINADSS/Fund/envelopeAmend.html">添加红包</a></div>
</ul>
<table class="table table-striped table-bordered table-condensed">
            <thead>
              <tr>
                <th>ID</th>
                <th>名称</th>
                <th>使用说明</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
                <volist name="redpacket" id="vo">
                <tr>
                <td>
                       {$vo.id}
                </td>
                 <td>
                      {$vo.name}
                </td>
                <td>
                      {$vo.conditions}
                </td>
                <td>
                    {$vo.starttime|date="Y-m-d H:i:s",###}
                </td>
                <td>
                    {$vo.endtime|date="Y-m-d H:i:s",###}
                </td>
                <td>
                    <if condition="$vo['state'] eq 0">
                   未开始
                   <elseif condition="$vo['state'] eq 1"/>
                   进行中
                   <elseif condition="$vo['state'] eq 2"/>
                   已结束
                   <else />
                   已停止
                   </if>
                </td>
                <td>
                    <a href="__APP__/ADMINADSS/Fund/envelopeAmend/id/{$vo.id}.html" class="ajax-link icon icon-color icon-edit" title="编辑"></a>
                    <a href="#" class="icon icon-color icon-trash" title="停止" onclick="if(confirm('是否要停止活动？'))window.location.href='__APP__/ADMINADSS/Fund/envelopeStop/id/{$vo.id}'"></a>
                </td>
              </tr>
</volist>
            </tbody>
          </table>
          <div class="pagination pagination-centered">
          <ul>{$page}</ul>
          </div>
<div>
<div class="span4">

</div>
</div>
<!--底部 -->
<include file="Index:footer" />
<!--底部 end-->
